﻿//双击事件
function CustomDbClick() {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    parent.$("#tabs").tabs('close', record.getData("FormName") + '表单');
    parent.addTabs(record.getData("FormName") + '表单', '../DesignForm/AlterForm.aspx?r=' + Math.random() + '&action=EditForm&formid=' + record.getData("FormID"));
}
//新增
var fnCustomAdd = function () {
    parent.$("#tabs").tabs('close',  '创新表单');
    parent.addTabs('创新表单', '../DesignForm/CreateForm.aspx?r=' + Math.random());

}
var fnCustomEdit = function () {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    parent.$("#tabs").tabs('close', record.getData("FormName") + '表单');
    parent.addTabs(record.getData("FormName") + '表单', '../DesignForm/AlterForm.aspx?r=' + Math.random() + '&action=EditForm&formid=' + record.getData("FormID"));

}